<template>
  <div class='table-area'>
    <el-table
      :loading="listLoading"
      :data="list"
      element-loading-text="Loading"
      border
      fit
      highlight-current-row
    >
      <el-table-column
        align="center"
        prop="actId"
        label="活动编号"
      />

      <el-table-column
        align="center"
        prop="actTitle"
        label="活动名称"
      />

      <el-table-column
        align="center"
        prop="actType"
        label="活动级别"
      >
        <template slot-scope="scope">
          <span v-if="scope.row.actType=='1'">学部级</span>
          <span v-if="scope.row.actType=='2'" style="color: blue;"><b>校级</b></span>
        </template>
      </el-table-column>

      <el-table-column
        align="center"
        prop="actMemberMax"
        label="活动人数"
      />

      <el-table-column
        align="center"
        prop="actPrincipalName"
        label="活动负责人"
      />

      <el-table-column
        align="center"
        prop="actPrincipalPhone"
        label="负责人电话"
      />

      <el-table-column
        align="center"
        prop="actAddress"
        label="活动地点"
      />

      <el-table-column
        align="center"
        prop="actStatus"
        label="活动状态"
      />


      <el-table-column align="center" label="操作" width="200">
        <template slot-scope="scope">
          <el-button type="primary" icon="el-icon-search" @click="1" size="mini">详细</el-button>
          <el-button type="warning" icon="el-icon-edit" @click="2" size="mini">编辑</el-button>
          <el-button type="warning" icon="el-icon-edit" @click="3" size="mini">编辑</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';

  export default {
     name:'',
    //import引入的组件需要注入到对象中才能使用
    components: {},
    data() {
      //这里存放数据
      return {
        list:[],
        listLoading:false,
        act:{
          "actId": 135,
          "actPartId": "1",
          "actUserId": "admin",
          "actTitleImg": "/resource/activity/c53d8902-b0a4-4084-90a6-7d5b48d45eef.bmp",
          "actTitle": "信息学部校友会",
          "actContentImg": "/resource/activity/dc978190-7ab0-4336-b574-6b1f721bebed.jpeg;/resource/activity/78299302-4277-417f-a73c-46b2d3fd4b42.jpg;",
          "actHost": "北京城市学院信息学部",
          "actJoinDeadtime": "2020-05-26",
          "actStartTime": "2020-05-08 15:13:06",
          "actStopTime": "2020-05-08 15:13:08",
          "actMemberMax": 100,
          "actMemberWay": "2",
          "actDesc": "描述描述",
          "actPrincipalName": "王镭树",
          "actPrincipalPhone": "18810642306",
          "actPrincipalEmail": "1158545448@qq.com",
          "actAddress": "北京城市学院顺义校区3号实训楼",
          "actCoordinate": "",
          "actCreateTime": 1588950791000,
          "actType": "1",
          "actStatus": "0"
        }
      }
    },
    //监听属性 类似于data概念
    computed: {},
    //监控data中的数据变化
    watch: {},
    //方法集合
    methods: {},
    //生命周期 - 创建完成（可以访问当前this实例）
    created() {},
    //生命周期 - 挂载完成（可以访问DOM元素）
    mounted() {},
    beforeCreate() {}, //生命周期 - 创建之前
    beforeMount() {}, //生命周期 - 挂载之前
    beforeUpdate() {}, //生命周期 - 更新之前
    updated() {}, //生命周期 - 更新之后
    beforeDestroy() {}, //生命周期 - 销毁之前
    destroyed() {}, //生命周期 - 销毁完成
    activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
  }
</script>
<style scoped>

</style>
